#include "../unp.h"


void
sock_set_wild(struct sockaddr *sa, socklen_t salen)
{
    const void	*wildptr;
	switch (sa->sa_family) {
        case AF_INET: {
            static struct in_addr	in4addr_any;
            in4addr_any.s_addr = htonl(INADDR_ANY);
            wildptr = &in4addr_any;
            break;
        }
        default:
		    return;
    }
    sock_set_addr(sa, salen, wildptr);
    return;   
}